//
// Created by fanghr on 18-3-27.
//

#ifndef ACCLSEN_ACCLSEN_DRIVER2CPP_H
#define ACCLSEN_ACCLSEN_DRIVER2CPP_H

#include "acclsen_driver.h"

class acclsen_driver2cpp {
private:
    acclsen_driver::acclsen_t *sensor;
public:
    acclsen_driver2cpp(std::string path = "/dev/ttyACM0", int baud = 9600);

    ~acclsen_driver2cpp();

    void run();

    void stop();

    acclsen_recv::time get_time();

    acclsen_recv::acc get_acc();

    acclsen_recv::angsp get_angsp();

    acclsen_recv::ang get_ang();

    acclsen_recv::magf get_magf();

    acclsen_recv::port get_port();

    acclsen_recv::prehei get_prehei();

    acclsen_recv::latlon get_latlon();

    acclsen_recv::grsp get_grsp();

    acclsen_recv::foel get_foel();
};


#endif //ACCLSEN_ACCLSEN_DRIVER2CPP_H
